/* 
 *   WWW.COO8.COM  
 */

package com.gm.memberShip.menu.business.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.gm.memberShip.menu.business.interfaces.IResetPwdManager;
import java.util.*;
import org.apache.commons.lang.StringUtils;
 

import com.gm.memberShip.menu.model.*;
import com.gm.memberShip.menu.persistence.interfaces.*;
import com.gm.memberShip.menu.business.interfaces.*;  

/**
 * @author  JIANGCHENG
 * @version 1.0
 * @since 1.0
 */


 
public class ResetPwdManagerImpl   implements IResetPwdManager{

	private IResetPwdDAO resetPwdDAO; 

	public void setResetPwdDAO(IResetPwdDAO dao) {
		this.resetPwdDAO = dao;
	} 

	 
	@Transactional(readOnly=true)
	public ResetPwd getById(java.lang.Integer id){
		return resetPwdDAO.getById( id);
	}
	@Transactional
	public void deleteById(java.lang.Integer id){
		resetPwdDAO.deleteById(id);
	}
	 
	@Transactional
	public void save(ResetPwd entity){
		resetPwdDAO.save(entity);
	}
	 
	@Transactional
	public void update(ResetPwd entity){
		resetPwdDAO.update(entity);
	}
 
	@Transactional(readOnly=true)
   public List<ResetPwd> findAll(Map<String, Object> search){
		return resetPwdDAO.findByMap(search);
	}

}
